package com.asset.dispoal.business.mediation.domain.db.mapper;

import com.asset.dispoal.business.mediation.domain.db.entity.ReduceWayTmp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 减免方式暂存表(ReduceWayTmp)表数据库访问层
 *
 * @author yf
 * @since 2022-08-26 09:34:22
 */
@Mapper
public interface ReduceWayTmpMapper {
    /**
     * 批量插入减免预设信息
     *
     * @param reduceWayTmps
     * @return
     */
    int insertBatch(@Param("entities") List<ReduceWayTmp> reduceWayTmps);

    /**
     * 根据减免方式id查询
     *
     * @param reduceWayIds
     * @return
     */
    List<ReduceWayTmp> getReduceWayInfoByIds(String reduceWayIds);
}

